from django.db import models
from farmers.locations.models import Location
from farmers.agents.models import Agent

class Farmer(models.Model):
    ssn = models.CharField(max_length=100)
    name = models.CharField(max_length=100)
    cell_phone = models.CharField(max_length=100)
    location = models.ForeignKey(Location)
    agent = models.ForeignKey(Agent)
    def __unicode__(self):
        return self.ssn
